<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<ui:composition template="_template.xhtml">
	<ui:define name="corpo">

		<div id="conteudo">

			<h:form id="form">

				<h2 style="color: red;">
					<h:outputText value="TROQUE SUA SENHA"/>
				</h2>

				<p:messages id="msg" />
					
				<p:fieldset style="background-image: url(resources/imagens/72.jpg);">
				
					<h:outputLabel value="Funcionário: " style="text-decoration: none" />
				<h:graphicImage value="resources/imagens/pesquisa_func.png" style="width: 40px;" />&nbsp;&nbsp;&nbsp;
				<h:outputText id="func" value="#{loginBean.funcionarioL.nome}" style="color: #1E90FF; font-weight:bold; text-decoration: none" />

				</p:fieldset>
				
				<h:panelGrid columns="3">
				<p:fieldset style="background-image: url(resources/imagens/72.jpg);" >
				
				
				<h:outputLabel value="Matrícula: " for="matricula" style="color: #1E90FF; font-weight:bold;" />
				<h:outputText id="matricula" value="#{loginBean.funcionarioL.matricula}" /><br /><br />
				
				<h:outputLabel value="Nome: " for="nome" style="color: #1E90FF; font-weight:bold;" />
				<h:outputText id="nome" value="#{loginBean.funcionarioL.nome}" style="width: 300px;" /><br /><br />
				
				<h:outputLabel value="Nova Senha: " for="senha" style="color: #1E90FF; font-weight:bold;" />
				<p:password id="senha" value="#{loginBean.funcionarioL.senha}" style="width: 200px;" /><br /><br />	
		
				<p:commandButton id="grava" value="ALTERAR" action="#{loginBean.edita}" ajax="false" image="ui-icon-pencil" update="msg">
					<f:ajax render="@all" />
				</p:commandButton>		
					
				<br />
				
				</p:fieldset>
				</h:panelGrid>

			</h:form>	
							
		</div>


	</ui:define>
</ui:composition>
</html>